.week-title-wrap {
    display: table;
    table-layout: fixed;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #EBEBEB;
}
.week-title-wrap div {
    width: 14.28%!important;
    display: table-cell;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    text-transform: uppercase;
}

.month-day-wrap {
    display: table;
    table-layout: fixed;
    width: 100%;
    overflow: hidden;
}

.month-prev,
.month-next {
    position: absolute;
    top: 0;
    width: 3em;
    height: 100%;
    opacity: .5;
}

.month-prev {
    left: 0;
}

.month-next {
    right: 0;
}

.month-prev:hover,
.month-next:hover {
    opacity: 1;
}

.month-prev:after,
.month-next:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-style: solid;
    border-color: #222;
    width: 0.6em;
    height: 0.6em;
    margin: -0.4em 0 0 -0.4em;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.month-prev:after {
    border-width: 0 0 0.2em 0.2em;
}

.month-next:after {
    border-width: 0.2em 0.2em 0 0;
}

.month-view-button {
    border-right: 0!important;
}

.month-view-button::before {
    content: '\2637';
    margin-right: 0.25em;
}

.month-view-button:after {
    content: 'Month';
}

.month {
    background: #F3F3F5;
    color: #545454;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

.calendar-header {
    position: relative;
    text-align: center;
    padding: 0.5em;
    background: #fff;
    height: 3em;
    box-sizing: border-box;
}

.calendar-header-title {
    text-transform: uppercase;
}

.calendar-header-title a:link,
.calendar-header-title a:visited {
    display: inline-block;
    border: 1px solid #ccc;
    color: #545454;
    text-decoration: none;
    height: 1.75em;
    line-height: 1.65em;
    padding: 0 0.65em 0 0.65em;
    box-sizing: border-box;
    transition: background .1s;
}

.calendar-header-title a:first-of-type {
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
}

.calendar-header-title a:last-of-type {
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
}

.calendar-header-title a:hover {
    background: #8b8b8b;
    border: 1px solid #8b8b8b;
    color: #fff;
}

.calendar-header-title a:active {
    background: #222;
    border: 1px solid #222;
    transition: none;
}

.calendar-header-title-date,
.calendar-header-title-date:hover {
    background: #eee!important;
    border: 1px solid #ccc!important;
    color: #545454!important;
    cursor: default;
}

.month-reset {
    border-left: 0!important;
}

.month-reset::before {
    content: '\21BB';
    margin-right: 0.25em;
}

.month-reset:after {
    content: 'Today';
}

.month-week {
    display: table-row;
    width: 100%;
}

.month-day,
.month-day-blank {
    width: 14.28%!important;
    display: table-cell;
    vertical-align: top;
    box-sizing: border-box;
    position: relative;
    color: inherit;
    background: #fff;
    box-shadow: 0 0 0 1px #EBEBEB;
    -webkit-transition: .25s;
    transition: .25s;
    padding: 0;
    text-decoration: none;
}

.month-day:before {
    content: '';
    display: block;
    padding-top: 100%;
    float: left;
}

.month-day-wrap > a:hover {
    background: #A1C2E3;
}

.month-day-blank {
    background: #F3F3F5;
}

.month-day-event > .month-day-number {
    position: absolute;
    line-height: 1em;
    top: 0.2em;
    left: 0.25em;
}

.month-past-day:after{
    content: '';
    width: 150%;
    height: 2px;
    -webkit-transform-origin: left top;
    -ms-transform-origin: left top;
    transform-origin: left top;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    background: rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 0;
    top: 0;
}

.month-past-day:hover {
    background: #fff!important;
}

.month-day-today .month-day-number {
    color: #FFF;
    background: #EA6565;
    border-radius: 0.75em;
    top: 0.08em;
    left: 0.05em;
    font-size: 0.9em;
    padding: 0;
    width: 1.25em;
    height: 1.25em;
    line-height: 1.25em;
    text-align: center;
}

.month-day-indicator-wrap {
    position: relative;
    max-width: 1.5em;
    margin: 0 auto;
    padding-top: 1.2em;
}

.month-day .month-event-indicator {
    display: inline-block;
    margin: 0.05em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 0.25em;
    vertical-align: middle;
    background: #7BA7CE;
}

.month-day .month-event-indicator span {
    color: transparent;
}

.month-day .month-event-indicator:hover {
    cursor: pointer;
}

.calendar-event-list {
    background: rgba(233, 235, 236, 0.9);
    overflow: auto;
    position: absolute;
    top: 2.5em;
    width: 100%;
    height: calc(100% - 2.5em);
    display: none;
    -webkit-transition: .25s;
    transition: .25s;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

.month-event-list-item {
    position: relative;
    padding: 0.5em 0.7em 0.25em 4em;
    display: none;
    border-top: 1px solid #D6D6D6;
    text-align: left;
}

.month-event-list-item:after{
    padding: 0.4em 1em;
    display: block;
    margin-bottom: 0.5em;
}

.month-event-list-item:after {
    content: '';
}

.calendar-event-list .month-day-today .calendar-event-list-date {
    color: #EA6565;
}

.month-event-list-item a:link,
.month-event-list-item a:visited {
    text-decoration: none;
}

.calendar-event-list-date {
    width: 4em;
    position: absolute;
    left: 0;
    top: 1.2em;
    text-align: center;
    font-weight: bold;
    line-height: 1.2em;
}

.calendar-event-list::-webkit-scrollbar {
    width: 0.75em;
}

.calendar-event-list::-webkit-scrollbar-track {
    background: none;
}

.calendar-event-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border: 1px solid #E9EBEC;
    border-radius: 0.5em;
}

.calendar-event-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (min-width: 25em) {
    .month-day-event {
	padding-top: 1.3em;
    }
    
    .month-day-event > .month-day-indicator-wrap {
	width: auto;
	max-width: none;
    }
    
    .month-day-indicator-wrap {
	padding: 0;
    }
    
    .month-day:before {
	padding-top: calc(100% - 1.2em);
    }
    
    .month-day .month-event-indicator {
	display: block;
	margin: 0 0 1px 0;
	width: auto;
	height: 1.5em;
	line-height: 1.2em;
	padding: 0.125em 0 0.1em 0.125em;
	border-radius: 0;
	overflow: hidden;
	background-color: #333;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
    }
    
    .month-day .month-event-indicator.month-event-continued {
	box-shadow: -1px 0 0 0;
    }
    
    .month-day .month-event-indicator span {
	display: block;
	width: auto;
	margin: 0;
	color: #fff;
	padding: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
    }
}
